-
Notifications
You must be signed in to change notification settings - Fork 112
Draft: Do not review, add support for specific geometry types #2803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2803 +/- ##
==========================================
- Coverage 51.67% 51.52% -0.16%
==========================================
Files 184 184
Lines 27777 27882 +105
==========================================
+ Hits 14355 14366 +11
- Misses 11786 11882 +96
+ Partials 1636 1634 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
// Check the column type name to determine specific geometry type | ||
colType := strings.ToLower(string(field.Name)) | ||
switch { | ||
case strings.Contains(colType, "point"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HasPrefix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
field.Name is column's name, not column's type. We don't have enough information here to figure it out. May need to make geometry all fall under one QValueKind
& put SRID as a field for QValueGeometry
case "geometry", "point", "polygon", "linestring", "multipoint", "multipolygon", "geomcollection": | ||
return qvalue.QValueKindGeometry, nil | ||
case "geometry", "point", "linestring", "polygon", "multipoint", "multilinestring", "multipolygon", "geometrycollection": | ||
switch ct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Earlier check is on strings.ToLower(ct)
this check is on ct
,
maybe we should instead merge with parent switch?
No description provided.